package com.wsoft.sms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 消息阅读标记表
 * </p>
 *
 * @author zhanggukai
 * @since 2025年01月07日 09:57:42
 */
@Getter
@Setter
@TableName("sms_message_read")
@Schema(name = "SmsMessageReadEntity", description = "消息阅读标记表")
public class SmsMessageReadEntity extends BaseEntity {

    @Schema(description = "消息ID")
    @TableField("message_id")
    private Long messageId;

    @Schema(description = "用户id")
    @TableField("member_id")
    private Long memberId;

    @Schema(description = "阅读状态（0未读，1已读）")
    @TableField("read_flag")
    private Integer readFlag;

    @Schema(description = "阅读时间")
    @TableField("read_time")
    private LocalDateTime readTime;

    @TableField("sort")
    private Integer sort;
}
